Curves and graphs

Axodraw is equipped with a curve fitting facility that can draw smooth curves through a set of coordinates. Coupled to this is a set of commands to draw the axes that are typically needed for the use of graphs and histograms. An example of a complete picture would be

\begin{center} \begin{picture}(360,440)(0,0)
\SetOffset(40,30)
\LinAxis(0,0)(300,0)(3,10,5,0,1.5)
\LinAxis(0,400)(300,400)(3,10,-5,0,1.5)
\LogAxis(0,0)(0,400)(4,-5,2,1.5)
\LogAxis(300,0)(300,400)(4,5,2,1.5)
\SetScale{100.} \SetWidth{0.005}
\Curve{(.1057001,1.2997)(.1057003,1.5399)
(.1057006,1.6908)(.1057010,1.8019)(.1057030,2.0406)
(.1057060,2.1911)(.1057100,2.3020)(.1057300,2.5403)
(.1057600,2.6904)(.1058000,2.8007)(.1060000,3.0365)
(.1080000,3.4512)(.1100000,3.5600)(.1200000,3.6950)
(.1300000,3.6969)(.1500000,3.6308)(.1800000,3.5024)
(.2200000,3.3413)(.3000000,3.0788)(.5000000,2.6374)
(.8000000,2.2295)(1.0000000,2.0357)(1.3000000
,1.8078)(1.6000000,1.6275)(2.0000000,1.4336)
(2.5000000,1.2398)(3.0000000,1.0815)}
\DashCurve{(1.7853600,.0111)(1.7853800,.0228)
(1.7854000,.0339)(1.7856000,.1218)(1.7860000,.2324)
(1.7870000,.3821)(1.7900000,.5786)(1.8000000,.8089)
(1.8200000,.9765)(1.8500000,1.0869)(1.9000000
,1.1718)(2.0000000,1.2335)(2.1000000,1.2468)
(2.2000000,1.2413)(2.4000000,1.2064)
(2.7000000,1.1340)(3.0000000,1.0574)}{0.05}
\SetScale{1.}\SetWidth{0.5}
\Line(200,360)(270,360)\Text(195,360)[r]{
\large$e^+e^-\rightarrow\mu^+\mu^-$}
\DashLine(200,330)(270,330){5}\Text(195,330)[r]{
\large$e^+e^-\rightarrow\tau^+\tau^-$}
\Text(0,-10)[]{0} \Text(100,-10)[]{1}
\Text(200,-10)[]{2} \Text(300,-10)[]{3}
\Text(150,-25)[]{\large Beam energy in GeV}
\Text(-10,70)[]{$1$} \Text(-10,170)[]{$10$}
\Text(-10,270)[]{$10^2$} \Text(-10,370)[]{$10^3$}
\rText(-25,220)[][l]{\Large$\sigma$ in nb}
\ArrowLine(190,270)(160,300)
\ArrowLine(160,240)(190,270)
\ArrowLine(270,300)(240,270)
\ArrowLine(240,270)(270,240)
\Photon(190,270)(240,270){4}{4.5}
\Vertex(190,270){1.5} \Vertex(240,270){1.5}
\end{picture}  \\ {\sl \hskip 10 pt Threshold
effects for $\mu$ and $\tau$} \end{center}
and the resulting picture would be

\begin{picture}(360,440)(0,0)
\SetOffset(40,30)
\LinAxis(0,0)(300,0)(3,10,5,0,1....
...,270)(240,270){4}{4.5}
\Vertex(190,270){1.5} \Vertex(240,270){1.5}
\end{picture}

pt Threshold effects for μ and τ
Of course one can scale these pictures further, but because the scale factor has been used to enter the data points these should then be adapted too. Note that when the scale is blown up by a factor 100, the linewidth has to be scaled down or disasters will take place.

Finally a playful example:

    \begin{center}\begin{picture}(300,56)(0,0)
    \Gluon(150,25)(200,25){3}{6}
    \Photon(150,35)(200,45){3}{6}
    \ZigZag(150,15)(200,5){3}{6}
    \Line(100,25)(150,25)
    \GOval(150,25)(20,10)(0){0.5}
    \end{picture} \end{center}
which results in

\begin{picture}(300,56)(0,0)
\Gluon(150,25)(200,25){3}{6}
\Photon(150,35)(200,...
...200,5){3}{6}
\Line(100,25)(150,25)
\GOval(150,25)(20,10)(0){0.5}
\end{picture}

Acknowledgement: The author wishes to thank G.J.van Oldenborgh for help with some of the TEX macros.

Axodraw can be obtained by means of anonymous ftp from ftp.nikhef.nl. It is located in the directory pub/form/axodraw. Commentary and suggestions should be sent to the author at t68@nikhef.nl.